package pers.qianyu.module.system.listener.events;

import org.springframework.context.ApplicationEvent;

import java.io.Serializable;
import java.util.Set;

/**
 * @author mizzle rain
 * @date 2021-04-07 18:57
 */
public class UserFollowedUserIdsUpdatedEvent extends ApplicationEvent implements Serializable {
    private static final long serialVersionUID = 5305138522577548970L;
    private Set<Long> followedUserIds;
    private Long userId;

    public UserFollowedUserIdsUpdatedEvent(Object source, Set<Long> followedUserIds, Long userId) {
        super(source);
        this.followedUserIds = followedUserIds;
        this.userId = userId;
    }

    public Set<Long> getFollowedUserIds() {
        return followedUserIds;
    }

    public void setFollowedUserIds(Set<Long> followedUserIds) {
        this.followedUserIds = followedUserIds;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
